package com.roy.galaxy.thread;

/**
 * @author gang.wang1903@xiaobao100.cn
 * @Date: 2019-10-09 16:33
 *
 * 线程异常
 *
 * java thread 是一个类，jvm做垃圾回收
 * jvm thread 是一个os thread，os管理
 */
public class ThreadException {

    public static void main(String[] args) {

        Thread thread1 = new Thread(()->{
            throw new RuntimeException("....");
        },"t1");
        thread1.start();

        System.out.print(thread1.isAlive());
    }
}
